home *** CD-ROM | disk | FTP | other *** search
/ The Very Best of Atari Inside / The Very Best of Atari Inside 1.iso / sharew / accs / mdisk599 / mdisk599.doc < prev   
Encoding:
Text File  |  1992-05-22  |  17.6 KB  |  409 lines

  1. Documentation for M-Disk 5.x for Atari ST
  2. =========================================
  3.  
  4. M-Disk provides
  5.   - a sizable removable multi-function ramdisk
  6.   - a floppy disk copy program (with virus detection logic)
  7.   - a fast ramdisk load/save program
  8.   - a harddisk backup/restore program
  9.   - a PS/2 compatible floppy disk formatting program
  10.   - a boot sector virus destruction program
  11. all in one program.
  12.  
  13. What's NEW:
  14. ===========
  15.  
  16. Version 5.7: User can switch off the automatic boot sector virus detection.
  17.  
  18. Version 5.8: Cache is now in a separate program (M-Cache).
  19.  
  20. Version 5.9: Many wonderful new features:
  21.              - Optional reset resident M-Disk
  22.              - Optional auto-installing M-Disk
  23.              - Optional support for TEMPLMON user trace vector
  24.              - Optional automatic check of a magic number on every disk access
  25.                ==> You may get disk error dialog boxes now on the Ram Disk !!!
  26.  
  27. Version 5.95: Set the mouse into the dialog
  28.  
  29. Version 5.96: Copy button as shorthand for load + save
  30.  
  31. Version 5.97: Some internal cleanup. M-Cache no longer included in the
  32.               distribution.
  33.  
  34. Version 5.98, 5.990: Some more internal cleanup.
  35.  
  36. Since Version 4.x M-Disk does not use any undocumened variables. It should work
  37. with any TOS Version. Tested with Disk TOS 1.0 (1986) and TOS 1.6 (STE TOS).
  38.  
  39. Currently M-Disks format routines will probably do not work with some speed
  40. boards (16 MHz extensions, TT etc.). The rest works well.
  41. But don't panic: If something goes wrong you'll get a warning message.
  42.  
  43. Notes about Cache: Old M-Disk Versions included a simple cache. In Version 5.8
  44.   this went into the separate program M-Cache. M-Cache did never work, since it
  45.   accidently forgot to install itself. I do no longer include M-Cache because:
  46.   a) The cache does not check for media changes and thus has problems with
  47.      changing media like in the Atari Megafile 44.
  48.   b) The cache layout was for a fixed sector size of 512 Bytes, but did not
  49.      check this. So it did not work with the new big Partitions of AHDI 3.0.
  50.   c) Nowadays nearly everybody has TOS 1.4. Use CACHE100.PRG in the AUTO folder
  51.      and this will be better and give you less problems than most cache programs
  52.      floating around.
  53.   d) I could adapt M-Cache to AHDI 3.0 and Megafile 44, but I don't have the
  54.      time in the moment and since one may well use CACHE100, there is no more
  55.      reason for having a separate cache program.
  56.   e) If you don't have TOS 1.4 (or above) you should hurry to get it.
  57.  
  58. Mixed hints:
  59.   - do *not* use CACHExxx.PRG with old TOS Versions (below 1.4).
  60.   - do *not* use TOS 1.4 without POOLFIX3.PRG in the AUTO folder.
  61.   - do *not* use any TOS (at least up to Version 1.6) without FOLDR100.PRG in
  62.     the AUTO folder.
  63.   - do *not* use the cache of the old M-Disk versions on Partitions that are
  64.     bigger than 15 MB.
  65.   
  66. Included files:
  67. ===============
  68.  
  69.     NAME           Length       Comment
  70.  
  71.   - MDISK.ACC       24202       the program
  72.   - MDISK5xx.DOC    18044       this document; Version = 5.xx
  73.   - CLEAR_M.PRG        78    utility program for old TOS versions
  74.  
  75. Installing the RamDisk:
  76. =======================
  77.  
  78. Move MDISK.ACC to the root directory of your boot disk, then reboot.
  79. Now there's a Desk Accessory entry "M-Disk" that lets you select
  80. a size for your ramdisk. Enter a size, then click "Install". Now M-Disk
  81. is active. Install a disk Icon for M-Disk, so you can click on it. M-Disk
  82. is always on drive M.
  83.  
  84. Copying from/to the M-Disk:
  85. ===========================
  86.  
  87. Since Floppy Disks are soooooo slow there is an option to load/save a whole
  88. Floppy Disk at once. This will make a plain copy of all files an directories,
  89. destroying the whole prior contents. The serial number of the Disk however
  90. is not changed.
  91.  
  92. >>>> The load/save option actually is the clou of the program.
  93. >>>> Use it often, it will save you lots of time.
  94. >>>> 
  95. >>>> load/save only works for Ram Disk size <= 1704 !
  96.  
  97. Use as Disk Copier:
  98. ===================
  99.  
  100. First load the source disk into M-Disk, then save onto the target disk.
  101. Most common floppy formats are supported. The formats of the source and
  102. target disks need not be the same, so you can quick and easy copy
  103. a single sided disk to a double sided or IBM PS/2 or 800 KB Disk. You may
  104. even copy a double sided to a single sided disk if the target disk has
  105. enough space.
  106.  
  107. If the target disk is unformatted or you want to reformat it into fast format
  108. use the "+ format" button. The format options can be set in the 'format'
  109. dialog.
  110.  
  111. If you want to make more than one copy you may want to use the 'copy' button.
  112. This allows you to make up to three copies and thus is equivalent to pressing
  113. first 'load' and then 'save' one to three times for each original to copy.
  114.  
  115. Use as Backup Program:
  116. ======================
  117.  
  118. Backup:
  119.   You probably won't Backup the whole Hard disk at once. So select the
  120.   part you want to save, then install an M-Disk that is big enough to
  121.   hold your data. If you make it small enough to fit on your floppy disk
  122.   you can copy files from the Harddisk to M-Disk until M-Disk is full.
  123.   Now save the data with the "save" option onto a floppy.
  124. Restore:
  125.   Load your Backup Disk into M-Disk (with "load disk"). Then copy the files
  126.   from M-Disk to your Hard Disk. This is *much* faster than copying
  127.   directly from floppy to harddisk.
  128. Incremental Backup:
  129.   Load your (old) backup floppy into M-Disk. Delete some files, copy new
  130.   versions from the harddisk to M-Disk. When your finished save the result
  131.   again onto your floppy.
  132.  
  133. Use as fast Ramdisk load/save program
  134. =====================================
  135.  
  136. Don't you think loading files from floppy to your (reset resident,
  137. auto-compressing, super-hyper) Ram-Disk needs a little speed up ?!?
  138.  
  139. Here it is:
  140.  
  141. After having installed your Ram-Disk you install M-Disk, then load
  142. from floppy to M-Disk (with M-Disk's "load"). Now you copy everything
  143. as usual file-by-file to your Ram-Disk. You may kill M-Disk thereafter.
  144.  
  145. Saving your work when you are finished is just the other way round:
  146. Copy file-by-file to M-Disk, then use M-Disk's "save".
  147.  
  148. Formatting floppy disks
  149. =======================
  150.  
  151. You may format a disk at any time. Among the various formats that can
  152. be formatted there are two MSDOS compatible formats:
  153.  
  154. - 80 tracks, 2 sides, 9 sectors: The standard 3.5" PS/2 format.
  155. - 40 tracks, 2 sides, 9 sectors: The standard 5.25" MSDOS/PCDOS format.
  156.  
  157. These two formats are at least "300% compatible", i. e. the logical disk
  158. structure is 100% compatible, the boot sector and media byte is 100% compatible
  159. and the physical disk structure (GAPs between sectors etc.) is 100% compatible.
  160. Of course you cannot boot your PS/2 computer from an Atari formatted disk.
  161.  
  162. While remaining compatible the disks formatted with M-Disk still run fast
  163. on the ST. Since M-Disk Version 4.0, they also run fast on the PC.
  164.  
  165. If you format/write 40-track disks on a 80-tracks double-stepping disk drive
  166. it's wise to write the data several times if you later want to read it on
  167. 40-track disks (e.g. press `save' with `+ format' several times).
  168.  
  169. M-Disk verifies every operation. For this reason no quick- or superquick-
  170. formatting routines are possible. Routines that format a 80 Track double
  171. sided disk in under 1 minute must time out the controller before each track
  172. is competely written. This leaves some garbage at the end of each track.
  173. If you are unlucky you would get another valid sector header in this area.
  174. So you might get e.g. "sector 1" two times on one track. Now these two
  175. will be read/written by TOS randomly, causing big problems. So M-Disk
  176. does not use these quick-and-dirty routines but always formats till the
  177. end of track assuring no anomaly can occur (additional verify is done also).
  178.  
  179. There is one thing that M-Disk cannot verify: When you are using 81- or
  180. 82-track formats your head (floppy disk head, not yours) may run against
  181. the wall. You hear a click. On normal formatting programs this will result
  182. in a misplaced last track (slightly off correct position). But M-Disk starts
  183. formatting at the last track. So if you hear this click with M-Disk *all*
  184. tracks will be formatted on incorrect place.
  185.  
  186. ***         For this reason you should use 81- or 82-track formats only
  187. ***         if you are absolutely sure that your floppy can hold this
  188. ***         without running its head against the wall.
  189.  
  190. The normal TOS formatted disk speed is rather slow. M-Disk formats standard
  191. fast-runing disks like DCFORMAT, FCOPY 2.0, CopyStar etc.
  192.  
  193. The `wipe' function only clears the floppy boot sector, the FATs and the root
  194. directory of the specified device. This is much faster than erasing every
  195. single file or reformatting the disk. `wipe' can also be applied to non-floppy
  196. media (e.g. M:). M-Disk will not wipe media with 12-Bit FATs or more than
  197. 5 FAT sectors.
  198.  
  199. What floppy Disk format should I use ?
  200. ======================================
  201.  
  202. The 9 sector 80 track format (on 1 or 2 sides) is the normal format.
  203. Use this whenever you do not need extremly much space on disk.
  204.  
  205. 10 sector format is safe. You may well use this whenever you want some
  206. more space on the disk. 10 sector disks run a little slower than 9 sector
  207. disks.
  208.  
  209. 11 sector format may only be used if your floppy disk drive is not too fast
  210. and do not use some cheap and bad disks. 11 sector disks run a little slower
  211. than 10 sector disks. It is normally better to use 11 sector formats than
  212. to format 81 or 82 tracks.
  213.  
  214. 81 or 82 track formats may not run on some disks and (much more evil)
  215. on some drives. So if it all works on your disk drive carry the disk to
  216. a friend and (s)he maybe will not be able to read the additional tracks.
  217. If the floppy disk head hits its limit while formatting you yourself
  218. may eventually not be able to read the disks on your own system. So use
  219. 81 or 82 tracks seldom or never.
  220.  
  221. 40 track disks can be used for special applications e.g. formatting
  222. IBM PC-DOS compatible 5.25 inch floppies. You will not need this for your
  223. normal work with the ST.
  224.  
  225. Customizing M-Disk
  226. ==================
  227.  
  228. You may want to set up your own startup-defaults for M-Disk. To do this,
  229. make the drive containing M-Disk the actual drive (e.g. Top window),
  230. enter the value for `Ram Disk size' you want as the default value,
  231. then click `setup'.
  232.  
  233. Set the preferences you like.
  234.  
  235. At last, click `save setup'. The setup is then saved to MDISK.ACC on
  236. the root of the current active drive (i.e. current window in desktop).
  237.  
  238. Strike the Virus out !
  239. ======================
  240.  
  241. When you use normal Disk-Copy Programs you may get a boot sector virus
  242. onto the copy disk. This is due to the fact that normal disk copy programs
  243. copy the boot sector as it is onto the copy disk. So any virus on the original
  244. gets copied to the copy.
  245.  
  246. M-Disk however does not copy the boot sector. So boot a sector virus does not
  247. get copied when copying disks with M-Disk. For this reason M-Disk copies
  248. are more safe.
  249.  
  250. M-Disk version 5.5 (and up) has an additional virus detection logic that
  251. detects executable boot sectors on every disk operation. You get messages of
  252. 2 levels:
  253.  
  254. 1. "Bootsector executable. This may be a virus or bootable program."
  255.    This message is no reason to panic. There is an executable boot sector
  256.    on the disk. This can be a virus, but it can also be startup code for a
  257.    game, time-setting, hard-disk related or other programs. Before destroying
  258.    it, you should test it with a more sophisticated virus destruction program
  259.    or the procedure described below.
  260.  
  261.    Conclusion: In this first case, you do not know, if you have a virus.
  262.  
  263. 2. "*** Attention: VIRUS ***   Your system is infected !".
  264.    Now you should be in panic !!! You booted with a virus-infected disk and
  265.    probably all disks, that have been in your floppy drive since the last
  266.    re-boot are infected now ! Let's hope you did not loose data !
  267.  
  268.    You should destroy the virus now (with the "virus check" button),
  269.    write-protect that disk and do a coldboot. Pressing the reset button
  270.    is not sufficient in this case. You must turn your computer off,
  271.    wait for 10 seconds, and turn it on again with a non-infected disk
  272.    in the drive.
  273.  
  274.    Conclusion: In this second case, you do absolutely sure have a virus !!!
  275.  
  276. (3. You see no message. Then you probably don't have a boot sector virus,
  277.     but you may have a link virus or something else.)
  278.  
  279. Test: Do I have a boot sector virus ?
  280. =====================================
  281.  
  282. If you are not sure if a particular boot sector on some disk is a virus,
  283. you can test it with the following procedure:
  284.  
  285. 1. Copy MDISK.ACC to the suspicious disk. Turn off the hard disk (we do
  286.    not want trouble on it). Put the suspicious disk in floppy drive A: and
  287.    press the reset button.
  288.  
  289. 2. Take an unformatted disk, format it with M-Disk, then wipe it, load
  290.    something into the M-Disk, then copy the M-Disk onto the newly formatted
  291.    disk with M-Disk save. Load and save again, etc. When you see the message:
  292.        "*** Attention: VIRUS ***   Your system is infected !".
  293.    somewhere in this process, you know, that you definitely have a virus.
  294.  
  295.    When you don't see that message, you may or may not have a virus.
  296.  
  297. Little virology
  298. ===============
  299.  
  300. There are many virus types in the world. M-Disk only recognises the most
  301. harmless (but also most common) type: "boot sector virus".
  302. This virus type sits in the boot sector and gets loaded whenever you boot
  303. with an infected disk in the boot drive.
  304.  
  305. A boot sector virus can easily be found and destroyed. If you copy all your
  306. data only with M-Disk (Version 5.5 and up), you will probably never have
  307. trouble with any boot sector virus.
  308.  
  309. More trouble comes with the "link virus" type, which is not recognised by
  310. M-Disk. A link virus links itself to any program, therefore it can never be
  311. found in the boot sector. It comes to your system along with some new program
  312. and as time goes by infects all of your programs. Whenever you start one of
  313. your programs now, you activate the virus.
  314.  
  315. All virus programs reproduce themselves. But that's not all. There are some,
  316. that give funny messages on the screen, some that produce bombs from time to
  317. time, some destroy data on your floppy or hard disk, some destroy your monitor
  318. or floppy disk drive etc. So take care to eliminate every virus as soon as
  319. possible.
  320.  
  321. There are also some special boot sector virus types that destroy everything
  322. they find in the boot sector (sometimes called anti-virus) and dummy boot sector
  323. programs (sometimes called virus protection programs). I don't like the concept
  324. of the anti-virus because it is just another virus and you never know what's
  325. going on in your floppy drive. I prefer a clean boot sector i. e. one that
  326. is filled up with zeroes after the first 30 Bytes of disk information.
  327.  
  328. Care for executable boot sectors
  329. ================================
  330.  
  331. Some disks (especially some games) have executable boot sectors. These sectors
  332. cannot be copied with M-Disk. Use other Programs to copy those disks.
  333.  
  334. Copy protected disks
  335. ====================
  336.  
  337. M-Disk cannot copy copy-protected software.
  338.  
  339. Recognise disk changes !
  340. ========================
  341.  
  342. When making backups of your data disk with normal disk copy programs
  343. the boot sector is copied as it is. This results in two 100% identical disks.
  344. The problem now is that the serial number of these two disks is the same.
  345. TOS uses this serial number to detect disk changes.
  346.  
  347. So if you now swap between these two disks TOS does not notice any disk change
  348. and you may get strange results i. e. lots of garbage on your disk. This
  349. may go up to complete data loss.
  350.  
  351. With M-Disk copy this won't happen since every disk gets a new serial number
  352. and so TOS will recognise every disk change correctly.
  353.  
  354. CLEAR_M.PRG
  355. ===========
  356.  
  357. Old TOS Versions (pre 1987) don't clear the _drvbits system variable on reset
  358. time. For proper work with M-Disk, those Systems should have CLEAR_M.PRG
  359. in the AUTO folder of the boot disk. TOS Versions of 1987 and later do not
  360. need this.
  361.  
  362. WARNING:
  363. ========
  364.  
  365. TurboDos had Problems with older M-Disk Versions. Versions >= 3.1 were
  366. not tested with TurboDos but it may eventually work together.
  367. (TurboDos is very buggy so you shouldn't use it anyway.)
  368.  
  369. There's no need to use M-Disk with TurboDos. Use FATSPEED and you will get
  370. TurboDos speed without TurboDos. Since M-Disk Version 5.5 FATSPEED is no 
  371. longer included in this distribution. You can get it from various sources,
  372. but you should better get the TOS 1.4 ROMs of April 6, 1989 (Rainbow TOS)
  373. into your computer.
  374.  
  375. Be sure to always use POOLFIX3.PRG with TOS 1.4 and TOS 1.6 (STE TOS).
  376. This program fixes (or at least tries to fix) the 40-folder bug, that was
  377. fixed and simultaneously re-introduced in TOS 1.4.
  378.  
  379. Disclaimer:
  380. ===========
  381.  
  382. WARNING: I'm using this program every day but I do not make any warranty
  383.          with respect to this documentation and the program it describes.
  384.          I disclaim any implicit/explicit suggestions of usefulness for any
  385.          particular purpose. I will not be responsible for any damages or
  386.          data lossage caused by using this program. If you want to use it
  387.          use it at your own risk.
  388.  
  389. This Program may be used and distributed freely as long as the program is
  390. left unchanged and this documentation goes unchanged with it.
  391. It may not be sold.
  392.  
  393. M-Disk was compiled with the new Lattice C 5.06.01 with a few Assembler
  394. subroutines.
  395.  
  396. For the rare case, that anybody wants to send me a little donation, here's the
  397. place where you can put it:
  398. 'Konto 2197 04-507' at the 'Postgiroamt Koeln', 'BLZ 370 100 50' (Germany).
  399.  
  400. My adress until the end of 1990 is:
  401.  
  402.   Christoph Strunk
  403.   Wartburgstr. 10
  404. D-4630 Bochum 7
  405.   (Federal Republic of Germany)
  406.  
  407.  
  408. - End of Document -
  409.